package com.pktechan.api.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;


/**
 * @program: cloudfloating
 * @description: 微信支付配置文件
 * @author: qx.zhang
 * @create: 2021-03-10 16:22
 **/
@Configuration
public class WxPayConfig {


    public static String wxPayKey;

    @Value("${wxpay.key}")
    public void setWxPayKey(String wxPayKey) {
        this.wxPayKey = wxPayKey;
    }
    public static String wxPayAppId;
    @Value("${wxpay.app-id}")
    public  void setWxPayAppId(String wxPayAppId) {
        this.wxPayAppId = wxPayAppId;
    }
    public static String wxPayMchId;
    @Value("${wxpay.mch-id}")
    public void setWxPayMchId(String wxPayMchId) {
        this.wxPayMchId = wxPayMchId;
    }

    public static String wxPayCertPath;
    @Value("${wxpay.cert-path}")
    public void setWxPayCertPath(String wxPayCertPath) {
        this.wxPayCertPath = wxPayCertPath;
    }
}
